package com.onefinger.manager.vos
{
	[Bindable]
	[RemoteClass( alias="com.onefinger.domain.Category" )]
	public class Category
	{
		public var id:Number = 0;
		public var name:String;
		public var showOrder:int;
		public var icon:String; 
		
		/**
		 * Clone create a clone of this  using copyFrom behavior
		 */
		public function clone():Category
		{
			var clone:Category = new Category();
			clone.copyFrom( this );
			return clone;
		}
		
		/**
		 * Method to copy an Category into this VO
		 */
		public function copyFrom( category:Category ):void
		{
			id = category.id;
			name = category.name;
			showOrder = category.showOrder;
			icon = category.icon;
		}
		
	}
}